package com.cy.ppj.model.ao.order;

import java.math.BigDecimal;
import java.util.List;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotEmpty;

import com.cy.ppj.comm.constant.RegexContants;
import com.cy.ppj.model.domian.customer.CustomerContact;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 后台新增订单字段
 *
 * @author tanyilin
 *
 * @create 2019年2月18日 下午6:06:18
 */
@Data
@ApiModel("后台新增订单字段")
public class OrderAdminAddAO {

	@ApiModelProperty(value = "产品ID", example = "0")
	@NotNull(message = "产品ID不可为空")
	private Long productId;
	
	@ApiModelProperty(value = "城市ID", example = "0")
	@NotNull(message = "城市ID不可为空")
	private Long cityId;
	
	@ApiModelProperty(value = "期限", example = "12")
	@NotNull(message = "期限不可为空")
	private Integer periods;
	
	@ApiModelProperty(value = "借款金额", example = "0.00")
	private BigDecimal loanAmount;
	
	@ApiModelProperty(value = "业务员手机号码或者姓名")
	@NotEmpty(message = "业务员手机号码或者姓名")
	private String brokerMobile;
	
	@ApiModelProperty(value = "客户姓名")
	@NotEmpty(message = "客户姓名不可为空")
	private String name;
	
	@ApiModelProperty(value = "客户身份证号码")
	@NotEmpty(message = "客户身份证号码")
	private String idNo;
	
	@ApiModelProperty(value = "客户手机号码")
	@NotEmpty(message = "客户手机号码不可为空")
	@Pattern(regexp = RegexContants.MOBILE, message = "客户手机号码格式不正确")
	private String mobile;

	@ApiModelProperty(value = "居住地址")
	private String resideAddress;
	
	@ApiModelProperty(value = "居住状态")
	private String resideStatus;
	
	@ApiModelProperty(value = "房产地址")
    private String housePropertyAddress;
    
	@ApiModelProperty(value = "户籍地址")
    private String idAddress;
    
	@ApiModelProperty(value = "公司名称")
    private String companyName;
    
	@ApiModelProperty(value = "公司地址")
    private String companyAddress;
    
	@ApiModelProperty(value = "公司电话")
    private String companyPhone;
    
	@ApiModelProperty(value = "微信号码")
    private String wechatNumber;
    
	@ApiModelProperty(value = "qq号码")
    private String qqNumber;
    
	@ApiModelProperty(value = "邮箱")
    private String email;
	
	@ApiModelProperty(value = "客户备注")
	private String remark;
	
	@ApiModelProperty(value = "客户联系人数组")
	private List<CustomerContact> customerContactList;
}
